//
//  CCCommonSystemView.h
//  CCFC_IPHONE
//
//  Created by  xuchen(陈旭)， xichen(陈曦)， qq：511272827 on 10-11-27.
//  Copyright 2010 cc_team. All rights reserved.
//

#ifndef	CC_COMMON_SYSTEM_VIEW
#define	CC_COMMON_SYSTEM_VIEW

#include "CCAll.h"

#ifdef	OBJC_MACRO
#import <MessageUI/MFMailComposeViewController.h>
#import <MessageUI/MessageUI.h>
#import <AddressBook/AddressBook.h>
#import <AddressBookUI/AddressBookUI.h>
#import <MediaPlayer/MPMediaPickerController.h>
#import <MediaPlayer/MPMoviePlayerController.h>

#if defined(__cplusplus)
extern "C" {
#endif
	
	// 调用系统短信界面
	MFMessageComposeViewController *showSystemSMSView(id delegate, 
													  const NSArray *recipientArr, 
													  const NSString *textBody, 
													  BOOL animated);
	
	// 调用联系人界面
	ABPeoplePickerNavigationController *showAddressBookPeopleView(id delegate, 
																  ABPropertyID propertyId, 
																  BOOL animated);
	
	// 调用系统mail界面
	MFMailComposeViewController *showMailView(id delegate, 
											  const NSArray *recipients, 
											  const NSArray *ccRecipients,
											  const NSString *subject, 
											  const NSString *textBody, 
											  BOOL isHTML, 
											  BOOL animated);
	
	// 调用系统播放器播放资源界面
	MPMediaPickerController *showIpodPlayResourceView(id delegate, 
													  MPMediaType mediaType, 
													  const NSString *prompt,
													  BOOL isAllowMultiSelected,
													  BOOL animated);
	
	// 调用系统照片库
	UIImagePickerController *showImagePickerView(id delegate,
												 UIImagePickerControllerSourceType imgType,
												 BOOL animated);
	
#if defined(__cplusplus)
}
#endif
	
@interface CCCommonSystemView : NSObject
{

}

@end

#endif	//OBJC_MACRO
#endif	//CC_COMMON_SYSTEM_VIEW
